<?php

abstract class Component
{
    public function __construct()
    {}
    
    public function __get($key)
    {
        global $applicationInstance;

        if(isset($applicationInstance) && isset($applicationInstance->$key))
        {
            return $applicationInstance->$key;            
        }else
        {
            global $$key;
            if(isset($$key)) { return $$key;}
            else return false;
        }
    }
}

?>